package com.ms.service.module.analysisgroup.async;

import java.util.ArrayList;

import com.ms.service.module.analysisgroup.db.AnalysisGroupDAO;
import com.ms.service.module.analysisgroup.db.model.UsedCoinCardDetailLogModel;
import com.xpec.c4.service.module.task.TaskAsyncCommand;

public class SaveUsedCoinCardDetailAsync extends TaskAsyncCommand{

	private ArrayList<UsedCoinCardDetailLogModel> logModels;
	
	@Override
	public void asyncExecute() throws Exception {
		if(logModels != null && logModels.size() > 0){
			AnalysisGroupDAO.getInstance().saveUsedCoinCardDetailLogModels(logModels);
		}
	}

	@Override
	public void execute() throws Exception {
		
	}

	public void setLogModels(ArrayList<UsedCoinCardDetailLogModel> logModels) {
		this.logModels = logModels;
	}
	

}
